package net.sx.minemodule.mvp.activities;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.base.MyBaseFragmentActivity;
import com.kedll.library.mvp.BasePresenter;

import net.sx.minemodule.R;
import net.sx.minemodule.adapter.MineRefundProgressAdapter;
import net.sx.minemodule.databinding.MineActivityRefundProgressBinding;
import net.sx.minemodule.mvp.bean.MineRefundProgressBean;

import java.util.ArrayList;
import java.util.List;

@Route(path = ARouterPath.PATH_MINE_ORDER_DETAIL_REFUND_PROGRESS)
public class MineRefundProgressActivity extends MyBaseFragmentActivity<MineActivityRefundProgressBinding, BasePresenter> {

    private List<MineRefundProgressBean> list = new ArrayList<>();
    private MineRefundProgressAdapter mAdapter;

    @Override
    protected int getLayout() {
        return R.layout.mine_activity_refund_progress;
    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        setAdapter();
    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }

    private void setAdapter(){
        for (int i = 0; i < 2; i++) {
            list.add(new MineRefundProgressBean());
        }

        mBinding.rcv.setLayoutManager(new LinearLayoutManager(this));

        mAdapter = new MineRefundProgressAdapter(list);
        mBinding.rcv.setAdapter(mAdapter);
    }

}
